package com.module.shici.ui;

import android.os.Bundle;

import androidx.annotation.Nullable;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.fenghuajueli.libbasecoreui.mvp.BaseActivity;
import com.fenghuajueli.module_route.ShiciRoute;
import com.module.shici.R;
import com.module.shici.databinding.ModuleShiciActivityCheckinBinding;
import com.sy.module_clockin.ClockinFragment;

@Route(path = ShiciRoute.SHICI_CHECKIN)
public class CheckInActivity extends BaseActivity {
    private ModuleShiciActivityCheckinBinding binding;
    private ClockinFragment clockinFragment;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = ModuleShiciActivityCheckinBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());
        clockinFragment = new ClockinFragment();
        getSupportFragmentManager()    //
                .beginTransaction()
                .add(R.id.fragment_container,clockinFragment)   // 此处的R.id.fragment_container是要盛放fragment的父容器
                .commit();
    }
}
